package com.jiangjiang.eshop.purchase.convert;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jiangjiang.eshop.purchase.domain.SupplierEntity;
import com.jiangjiang.eshop.purchase.dto.SupplierDTO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @Author Jianghaowen
 * @Date 2021/9/14
 * @Description: TODO
 * @Version V1.0
 **/
@Mapper(componentModel = "spring")
public interface SupplierConvert {

    Page<SupplierDTO> convertPage2DTO(Page<SupplierEntity> entityPage);

    SupplierDTO convert2DTO(SupplierEntity entity);

    SupplierEntity convert2Entity(SupplierDTO dto);

    List<SupplierDTO> convert2DTOList(List<SupplierEntity> list);
}
